import './App.scss';
import { BrowserRouter, Link, Routes, Route } from 'react-router-dom';
import Home from './views/home/home';
import NotFound from './views/notfound/notfound';
import Login from './views/login/login';
import GetMoney from './views/getmoney/getmoney';
import Help from './views/help/help';
import Goods from './views/goods/goods';
import Record from './views/record/record';
import LayOut from './views/layout/layout';

function App() {


  return (
    <div className="App">
      <BrowserRouter>
        <Routes>
          <Route path='/' element={<LayOut />}>
            <Route index element={<Home />} />
            <Route path='getmoney' element={<GetMoney />} />
            <Route path='help' element={<Help />} />
            <Route path='goods' element={<Goods />} />
            <Route path='record' element={<Record />} />
          </Route>
          <Route path='/login' element={<Login />} />
          <Route path='*' element={<NotFound />} />
        </Routes>
      </BrowserRouter>
    </div>
  );
}

export default App;